﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Reporter.Data;
using ReporterControlLibrary.Models;

namespace Reporter.Controls
{
    /// <summary>
    /// Interaction logic for NewProjectDialogBox.xaml
    /// </summary>
    public partial class ReportInfoParametersDialogBox : Window
    {
        public string Caption { get; set; }

        public ReportInfoParametersDialogBox()
        {
            InitializeComponent();
        }

        public ReportInfoParametersDialogBox(ReportInfo reportInfo)
        {
            if(reportInfo != null)
                this.DataContext = reportInfo;
            
            InitializeComponent();
        }

        private void OK_bt_Click(object sender, RoutedEventArgs e)
        {
            // form validation comes here

            this.DialogResult = true;
        }

        private void Cancel_bt_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

    }
}
